//
//  XDNetworkRequset.h
//  LNCashLoans
//
//  Created by kms on 2019/4/8.
//  Copyright © 2019 淘发现1iOS. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN
typedef NS_ENUM(NSInteger, ImageQuality)
{

    ImageQualityLow = 25,
    ImageQualityNormal = 50,
    ImageQualityHigh = 75,
    ImageQualityOriginal = 100,
};

@interface XDNetworkRequset : NSObject
/** post请求 */
+ (void)PostNetwork:(NSString *)urlString andParam:(NSDictionary *)param completionBlock:(void(^)(BOOL success, NSDictionary *jsonObject))completeBlock;
+ (void)PostNetworkREQ:(NSString *)urlString andParam:(NSDictionary *)param completionBlock:(void(^)(BOOL success, NSDictionary *jsonObject))completeBlock;

+ (void)PostStringNetwork:(NSString *)urlString andParam:(NSString *)param completionBlock:(void(^)(BOOL success, NSDictionary *jsonObject))completeBlock;

+(void)postNETworkRequest:(NSString *)urlString andParam:(NSString *)param completionBlock:(void(^)(BOOL success, NSDictionary *jsonObject))completeBlock;

/** get请求 */
+ (void)GetNetwork:(NSString *)urlString andParam:(NSString *)param completionBlock:(void(^)(BOOL success, NSDictionary *jsonObject))completeBlock;

+ (void)GetNetworkRequest:(NSString *)urlString andParam:(NSString *)param completionBlock:(void(^)(BOOL success, NSArray *jsonArr))completeBlock;

+ (void)GetNetworkString:(NSString *)urlString andParam:(NSString *)param completionBlock:(void (^)(BOOL, NSData *))completeBlock;

+ (void)ReqFile_HTTP:(NSString *)req_URL fileData:(NSData *)fileData andParam:(NSDictionary *)param fileName:(NSString *)fileName fileType:(NSString *)fileType completeBloc:(void (^)(BOOL, NSDictionary *))completeBlock;

+ (UIImage *) imageFromURLString: (NSString *) urlstring;
/** 图片网络请求 */
//+ (void)setImageWithImageView:(UIImageView *)imageView WithUrlString:(NSString *)urlString WithImageQualist:(ImageQuality)imageQuality;
//+ (void)setImagelimWithImageView:(UIImageView *)imageView WithUrlString:(NSString *)urlString;
@end

NS_ASSUME_NONNULL_END
